package lab03.Test09;

public class Book {
    String id,name,edition;
    float price;
    int sale;
    public Book(){}
    public Book(String id,String name,String edition,String price,String sale){
        this.id=id;
        this.name=name;
        this.edition=edition;
        this.price=Float.parseFloat(price);
        this.sale=Integer.parseInt(sale);
    }
    void increasePrice(int increase){
        price+=increase;
    }
    public String toString(){
        String str;
        str=id+"  "+name+"         "+edition+"  "+price+"  "+sale+"\r\n";
        return  str;
    }
}
